package com.gis.dto;

import java.util.List;
import com.gis.entity.ColorMapEntry;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class SLDStyleDto {
    @Schema(description = "样式名称", example = "exampleStyle")
    String name;
    // <sld:ColorMapEntry color="#0000FF" quantity="0.0" label="0.0"/>
    //           <sld:ColorMapEntry color="#00FFFF" quantity="0.2" label="0.2"/>
    //           <sld:ColorMapEntry color="#FFFF00" quantity="0.6" label="0.6"/>
    //           <sld:ColorMapEntry color="#FF0000" quantity="1.0" label="1.0"/>
    // 这里为了简化，就不写ColorMapEntryVo, 直接使用ColorMapEntry实体类
    @Schema(description = "颜色映射条目列表", 
            example = "[" +
            "{\"color\": \"#FF0000\", \"quantity\": \"0.0\", \"label\": \"0.0\", \"opacity\": \"1.0\"}," +
            "{\"color\": \"#FFFF00\", \"quantity\": \"0.2\", \"label\": \"0.2\", \"opacity\": \"1.0\"}," +
            "{\"color\": \"#00FFFF\", \"quantity\": \"0.6\", \"label\": \"0.6\", \"opacity\": \"1.0\"}," +
            "{\"color\": \"#0000FF\", \"quantity\": \"1.0\", \"label\": \"1.0\", \"opacity\": \"1.0\"}]")
    List<ColorMapEntry> colorMapEntries;
}
